<?php

namespace app\common\model;

use think\Model;

/**
 * 用户等级
 */
class UserLevel extends Model
{

    protected $name = 'user_level';
    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';
    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    protected $deleteTime = '';
    protected $hidden = ['createtime', 'updatetime'];

    // 追加属性
    protected $append = [];

    public function getImageAttr($value, $data)
    {
        return cdnurl($value,true);
    }
}
